<?php
//require_once 'dr-app-config.php';
//echo '<pre>';
function dr_db_get_all_user_record_histories()
{
	global $db;
	$sql = 'SELECT * FROM `^record_history` ORDER BY `user_id` ASC';
	$result = dr_db_query_sub($db, $sql);
	$records = array();
	while ($row = mysql_fetch_assoc($result)) {
		$records[] = $row;
	}
	return $records;
}
//var_dump(dr_db_get_all_user_record_histories());